import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';

export const columns: BasicColumn[] = [
    {
    title: '主键: 序号（种子：自增1）',
    dataIndex: 'hisdataid'
   },
   {
    title: '下级SCID',
    dataIndex: 'scid'
   },
   {
    title: '站点编号（站点表主键）',
    dataIndex: 'siteid'
   },
   {
    title: '设备编号（设备表主键）',
    dataIndex: 'deviceid'
   },
   {
    title: '数据类型',
    dataIndex: 'type'
   },
   {
    title: '值',
    dataIndex: 'value'
   },
   {
    title: '数据时间',
    dataIndex: 'updatetime'
   },
];

export const searchFormSchema: FormSchema[] = [
 {
    label: '主键: 序号（种子：自增1）',
    field: 'hisdataid',
    component: 'Input'
  },
 {
    label: '下级SCID',
    field: 'scid',
    component: 'Input'
  },
];

export const formSchema: FormSchema[] = [
  // TODO 主键隐藏字段，目前写死为ID
  {label: '', field: 'id', component: 'Input', show: false},
  {
    label: '主键: 序号（种子：自增1）',
    field: 'hisdataid',
    component: 'Input',
  },
  {
    label: '下级SCID',
    field: 'scid',
    component: 'Input',
  },
  {
    label: '站点编号（站点表主键）',
    field: 'siteid',
    component: 'Input',
  },
  {
    label: '设备编号（设备表主键）',
    field: 'deviceid',
    component: 'Input',
  },
  {
    label: '数据类型',
    field: 'type',
    component: 'Input',
  },
  {
    label: '值',
    field: 'value',
    component: 'Input',
  },
  {
    label: '数据时间',
    field: 'updatetime',
    component: 'Input',
  },
];
